<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>音乐盒子</title>
    <script src="https://cdn.bootcss.com/vue/2.6.10/vue.js"></script>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
    <link rel="stylesheet" href="./css/main.css" type="text/css">
</head>
<body>
    <canvas id="canvas"></canvas>
    <div id="app">
        <div class="search-wrap">
            <input type="text" v-model="keyword" @keyup.enter="searchSongs"> <button @click="searchSongs">搜索</button>
        </div>
        <!-- 泪选择器的值取决与playstate -->
        <img :class="['rotate',playState?'running':'paused']" src="images/bg.png" alt="">
        <!-- <h4>{{keyword}}</h4> -->
        <!-- <p>{{author}}</p> -->
        <h4 v-text="keyword"></h4>
        <p v-text="author"></p>

        <audio @play="play" @pause="pause":src="url" controls="controls" loop="loop" autoplay="autoplay"id="audio"></audio>
    </div>
    <script src="./js/index.js"></script>
    <script src="./js/animate.js"></script>
</body>
</html>